//
//  DDJobCategoryService.m
//  DingDongZP
//
//  Created by Jyh on 16/4/23.
//  Copyright © 2016年 iyhjiang.com. All rights reserved.
//

#import "DDJobCategoryService.h"

@implementation DDJobCategoryService

- (void)queryJobCategoryInfoSuccessBlock:(successBlock)successBlock
                               failBlock:(faileBlock)failBlock
{
    NSString *URLString = [[DDAPIGenerate sharedInstance] API:@"query_job_categories"];
    
    NSMutableDictionary *params = [@{} mutableCopy];
    
    DDNetWorkManager *manager = [DDNetWorkManager shareManager];
    
    [manager GET:URLString parameters:params success:successBlock failure:failBlock];
}

- (void)queryJobSecondCategoryInfoWithLevel2Id:(NSString *)levelTagId
                                  SuccessBlock:(successBlock)successBlock
                                     failBlock:(faileBlock)failBlock
{
    NSString *URLString = [[DDAPIGenerate sharedInstance] API:@"query_jobstrenghs_requirments_tags_for_level2jobcategory"];
    
    NSMutableDictionary *params = [@{} mutableCopy];
    if (levelTagId) {
        params[@"level2_id"] = levelTagId;
    }
    DDNetWorkManager *manager = [DDNetWorkManager shareManager];
    
    [manager GET:URLString parameters:params success:successBlock failure:failBlock];
}

@end
